<template>
  <component :is="name" v-bind="$attrs" v-on="$listeners" />
</template>

<script>
import CustomSelect from './custom-select';

export default {
  name: 'DynamicComponent',
  components: {
    CustomSelect,
  },
  props: {
    name: {
      type: String,
      required: true,
    },
  },
};
</script>
